### -*- coding: utf-8 -*- #############################################
# Разработано Паэглит Арвидом (http://arvid.dp.ua/)
# Все права защищены, 2007
#
# Developed by Paeglit Arvid (http://arvid.dp.ua/)
# All right reserved, 2007
#######################################################################
"""Interfaces for the Zope 3 based useraddmail package

$Id: interfaces.py 36 2007-12-11 13:02:10Z Arvi3D $
"""
__author__  = "Arvid"
__license__ = "GPL"
__version__ = "$Revision: 36 $"
__date__ = "$Date: 2007-12-11 13:02:10 +0000 (Tue, 11 Dec 2007) $"

from zope.interface import Interface, Attribute, implements
from zope.app.intid.interfaces import IIntIds
from zope.schema import Text, TextLine, Field, Bool, Datetime, Choice, Tuple, List, Object, Set, Int, URI
from zope.annotation.interfaces import IAttributeAnnotatable
from zope.app.container.constraints import contains, containers

_ = lambda x : x

class IUserAddMailable(IAttributeAnnotatable):
    pass

class IUserAddMail(Interface):

    channel = Choice(
                     title = _(u"Channel")
                     ,vocabulary = "ks.channel.Channels"
                     ,required = False
                     )

    ismailable = Bool(
                      title = _(u"Is mailable")
                      ,required = False
                      ,default = True
                      )

    def sendPost(user):
        """ send post to user"""

userAddMailKey = "arvidcontent.useraddmail.annotation.UserAddMail"
